package com.axe.processdatasync;

import java.util.ArrayList;
import java.util.List;

public class User {
    private String name; // 用户名
    private String gender;  // 性别 男 或者 女
    private int age;     // 年龄
    private List<String> hobbys; // 兴趣爱好
    private String description; // 描述

    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

    public String getGender() {
        return gender;
    }

    public User setGender(String gender) {
        this.gender = gender;
        return this;
    }

    public int getAge() {
        return age;
    }

    public User setAge(int age) {
        this.age = age;
        return this;
    }

    public List<String> getHobbys() {
        return hobbys;
    }

    public User setHobbys(List<String> hobbys) {
        this.hobbys = hobbys;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public User setDescription(String description) {
        this.description = description;
        return this;
    }

    public static User buildUser() {
        User user = new User();
        user.setAge(10);
        user.setDescription("测试进程中通信");
        user.setGender("男");
        user.setName("测试测试");
        List<String> hobbys = new ArrayList<>();
        hobbys.add("吃饭");
        hobbys.add("睡觉");
        user.setHobbys(hobbys);
        return user;
    }
}
